package com.scm.service;

import com.scm.dao.PoMainMapper;
import com.scm.pojo.PoItem;
import com.scm.pojo.PoMain;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @ClassName PoMainService
 * @Description TODO
 * @Author Xu
 * @Date 2021/7/12 14:30
 * @Version 1.0
 **/
@Service
public class PoMainService implements PoMainMapper {

    @Autowired
    private PoMainMapper poMainMapper;
    @Override
    public void addPoMain(PoMain poMain) {
        poMainMapper.addPoMain(poMain);
    }

    @Override
    public void addItem(PoItem poItem) {
        poMainMapper.addItem(poItem);
    }

    @Override
    public List<PoMain> getPagePoMain(Map<String, Object> params) {
        return poMainMapper.getPagePoMain(params);
    }

    @Override
    public int countPoMain() {
        return poMainMapper.countPoMain();
    }

    @Override
    public PoMain findPoMain(String poID) {
        return poMainMapper.findPoMain(poID);
    }

    @Override
    public void updatePoMain(PoMain poMain) {
        poMainMapper.updatePoMain(poMain);
    }

    @Override
    public void deletePoMain(String poID) {
        poMainMapper.deletePoMain(poID);
    }

    @Override
    public List<PoMain> getLikePoMain(Map<String,Object> map) {
        return poMainMapper.getLikePoMain(map);
    }

    @Override
    public List<String> getVender() {
        return poMainMapper.getVender();
    }

    @Override
    public List<PoMain> getStoragePoMain(Map<String,Object> map) {
        return poMainMapper.getStoragePoMain(map);
    }

    @Override
    public int getCountStoragePoMain() {
        return poMainMapper.getCountStoragePoMain();
    }

    @Override
    public void putStorage(String poID) {
        poMainMapper.putStorage(poID);
    }

    @Override
    public List<PoMain> getPoMain1(Map<String, Object> map) {
        return poMainMapper.getPoMain1(map);
    }

    @Override
    public List<PoMain> getPoMain2(Map<String, Object> map) {
        return poMainMapper.getPoMain2(map);
    }

    @Override
    public List<PoMain> getPoMain3(Map<String, Object> map) {
        return poMainMapper.getPoMain3(map);
    }

    @Override
    public int count1() {
        return poMainMapper.count1();
    }

    @Override
    public int count2() {
        return poMainMapper.count2();
    }

    @Override
    public int count3() {
        return poMainMapper.count3();
    }

    @Override
    public void proceeds(String soID) {
        poMainMapper.proceeds(soID);
    }

    @Override
    public void preProceeds(String soID) {
        poMainMapper.preProceeds(soID);
    }

    @Override
    public List<PoMain> endPoMain(Map<String, Object> map) {
        return poMainMapper.endPoMain(map);
    }

    @Override
    public int endCountPoMain(Map<String, Object> map) {
        return poMainMapper.endCountPoMain(map);
    }

    @Override
    public void realEndPoMain(String poID) {
        poMainMapper.realEndPoMain(poID);
    }

    @Override
    public int getCountLikePoMain(Map<String, Object> map) {
        return poMainMapper.getCountLikePoMain(map);
    }

    @Override
    public List<PoMain> getMonthPoMain(Map<String, Object> map) {
        return poMainMapper.getMonthPoMain(map);
    }

    @Override
    public List<PoMain> getAllMonthPoMain(String date) {
        return poMainMapper.getAllMonthPoMain(date);
    }

    @Override
    public PoMain getPoMain(String poID) {
        return poMainMapper.getPoMain(poID);
    }
}
